home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / CLRBOX.CC < prev    next >
Text File  |  1993-04-04  |  431b  |  18 lines

  1. #include <dos.h>
  2. void clrbox(int trow,int tcol,int lrow,int lcol,int wattr)
  3. /* Clear the area inside the box built by the BOX function to the
  4.    specified attribute
  5. */
  6. {
  7.    union REGS inregs;
  8.  
  9.    inregs.h.bh = wattr;
  10.    inregs.h.cl = tcol+1;
  11.    inregs.h.ch = trow+1;
  12.    inregs.h.dl = lcol-1;
  13.    inregs.h.dh = lrow-1;
  14.    inregs.h.al = 0;
  15.    inregs.h.ah = 6;            /* do the scroll */
  16.    int86(0x10,&inregs,&inregs);
  17. }
  18.